def numberSum(list_to, tag):
    for i in range(len(list_to) - 1):
        right = len(list_to) - 1
        for left in range(i + 1, len(list_to)):
            if left == right:
                break
            print(left, right)
            if list_to[i] + list_to[left] == tag:
                return i, left

            if list_to[i] + list_to[right] == tag:
                return i, right
            right -= 1



if __name__ == '__main__':
    # numbers = [2, 7, 11, 15, 12, 9, 4]
    # numbers = [3, 2, 4]
    # numbers = [2,1,9,4,4,56,90,3]
    # numbers = [-3, 4, 3, 90]
    numbers = [150,24,79,50,88,345,3]
    tag = 200
    print(numberSum(numbers, tag))
